home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / bsd / mp.h < prev    next >
Text File  |  1993-04-08  |  858b  |  45 lines

  1. /*
  2.  * Copyright (c) 1980 Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  *
  6.  *    @(#)mp.h    1.2 88/05/16 4.0NFSSRC SMI; from    5.1 (Berkeley) 5/30/85
  7.  */
  8.  
  9. #define MINT struct mint
  10. MINT
  11. {    int len;
  12.     short *val;
  13. };
  14. #define FREE(x) {if(x.len!=0) {free((char *)x.val); x.len=0;}}
  15. #ifndef DBG
  16. #define shfree(u) free((char *)u)
  17. #else
  18. #import <stdio.h>
  19. #define shfree(u) { if(dbg) fprintf(stderr, "free %o\n", u); free((char *)u);}
  20. extern int dbg;
  21. #endif
  22. #ifdef __BIG_ENDIAN__
  23. struct half
  24. {    short high;
  25.     short low;
  26. };
  27. #else
  28. struct half
  29. {    short low;
  30.     short high;
  31. };
  32. #endif
  33. extern MINT *itom();
  34. extern MINT *xtom();
  35. extern char *mtox();
  36. extern short *xalloc();
  37. extern void mfree();
  38.  
  39. #ifdef lint
  40. extern xv_oid;
  41. #define VOID xv_oid =
  42. #else
  43. #define VOID
  44. #endif
  45.